﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using KeaoBase;

namespace KeaoMDS.Weight
{
    public partial class SheZhiFaHuoZhongLiang : BaseForm
    {
        public SheZhiFaHuoZhongLiang()
        {
            InitializeComponent();
        }

        public string m_FaHuoZhongLiang =string.Empty;

        private void menu_btn_baocun_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(txt_fahuozhongliang.Text))
            {
                if (KeaoUtils.isNumber(txt_fahuozhongliang.Text))
                {
                    m_FaHuoZhongLiang = txt_fahuozhongliang.Text;
                    DialogResult = DialogResult.OK;
                }
                else
                {
                    KeaoUtils.ShowInfoMessage("请输入正确的发货重量。");
                }
            }
           
        }

        private void menu_btn_guanbi_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
        }

        private void SheZhiQuXiang_Load(object sender, EventArgs e)
        {
            txt_fahuozhongliang.Text = "0";
            m_FaHuoZhongLiang = "0";
        }

        private void txt_fahuozhongliang_Click(object sender, EventArgs e)
        {
            txt_fahuozhongliang.Focus();
            txt_fahuozhongliang.SelectAll();
        }

    }
}
